package com.controller;

import com.service.RenameService;
import com.util.C_infor;
import com.util.Rename;
import com.util.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class RenameController {
    @Resource
    private RenameService renameService;

    @RequestMapping("/c_rename")
    public Result<?> Rename(@RequestBody Rename rename){
        return renameService.rename(rename);
    }
    @RequestMapping("/c_reaccount")
    public Result<?> ReAccount(@RequestBody Rename rename){
        return renameService.reAccount(rename);
    }
    @GetMapping("/rename_record")
    @ResponseBody
    public List<Rename> See_company_rename(@RequestParam String pId){
        return renameService.see(pId);
    }
}
